package com.bytedance.frameworks.core.a;

import android.content.Context;

import com.bytedance.frameworks.baselib.a.b;

final class h extends b {
    private final f h;

    h(f arg1, Context arg2, a arg3, com.bytedance.frameworks.baselib.a.b.b$b arg4) {
        super(arg2, arg3, arg4);
        this.h = arg1;
    }

    public final boolean a(String arg9, byte[] arg10) {
        long v6 = 1800000;
        boolean v0 = false;
        if (android.support.design.a.g != null) {
            l v2 = android.support.design.a.g.a(arg9, arg10, "application/json; charset=utf-8");
            if (v2.a > 0) {
                this.h.b = false;
                if (v2.a == 200 && v2.b != null) {
                    if (v2.b.optInt("is_crash", 0) == 1) {
                        this.h.a = v6;
                        this.h.c = 3;
                        return v0;
                    } else if (v2.b.opt("message").equals("success")) {
                        this.h.c = 0;
                        this.h.a = 0;
                        return true;
                    }
                }

                if (500 > v2.a) {
                    return v0;
                }

                if (v2.a > 600) {
                    return v0;
                }

                if (this.h.c == 0) {
                    this.h.a = 300000;
                    ++this.h.c;
                    return v0;
                }

                if (this.h.c == 1) {
                    this.h.a = 900000;
                    ++this.h.c;
                    return v0;
                }

                this.h.a = v6;
                ++this.h.a;
            } else {
                this.h.b = true;
            }
        }

        return v0;
    }
}

